//
//  RegistreViewController.swift
//  DianShangWen
//
//  Created by 周文轩 on 15/5/6.
//  Copyright (c) 2015年 &#21608;&#25991;&#36713;. All rights reserved.
//

import UIKit

class RegistreViewController: UIViewController {

    @IBOutlet weak var email: UITextField!
    @IBOutlet weak var nickname: UITextField!
    @IBOutlet weak var passwork: UITextField!
    @IBOutlet weak var againPasswork: UITextField!
    @IBOutlet weak var errorReason: UILabel!
    
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }
    
    @IBAction func userRegister() {
        let serverRequest: () = ServerRequest.ServerRequest("system.authentication.register", requestStayle: ".get", params: ["email":email.text,"nickname":nickname.text,"pwd":passwork.text], tag: 11) { (dataDictionary) -> Void in
            
        }
    }
    
    @IBAction func backLoginView() {
        self.navigationController?.popToRootViewControllerAnimated(true)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
